package gui;

import gui.admin.AbstractAdminPanelImpl;
import gui.admin.AdminWelcomePanel;
import gui.admin.AdminWelcomePanelImpl;

import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

public class AdminMain {

	public static void main(String[] args) {
		Display display = Display.getDefault();
		Shell view = new Shell(display);

		AbstractAdminPanelImpl window = new AdminWelcomePanelImpl(display, view);
		((AdminWelcomePanel) window).open();

		while (!view.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}

		window.closeDatabase();
		display.dispose();
	}
}